package com.talos.ums.controller.admin.roleresource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 角色菜单关联表新增/修改 Request VO")
@Data
public class UmsRoleResourceSaveReqVO {

    @Schema(description = "", requiredMode = Schema.RequiredMode.REQUIRED, example = "13955")
    private Long id;

    @Schema(description = "角色表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3270")
    @NotNull(message = "角色表ID不能为空")
    private Long roleId;

    @Schema(description = "菜单资源表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18515")
    @NotNull(message = "菜单资源表ID不能为空")
    private Long resourceId;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "资源编码")
    private String resourceCode;

}
